//
//  HNNewsWebViewModel.m
//  HappyNews
//
//  Created by Sai on 16/1/9.
//  Copyright © 2016年 bai wang. All rights reserved.
//

#import "HNNewsWebViewModel.h"

@implementation HNNewsWebViewModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        _Id = (NSInteger)value;
    }
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"theme"]) {
        HNNewsWebViewThemeModel *model = [[HNNewsWebViewThemeModel alloc]init];
        [model setValuesForKeysWithDictionary:value];
        _theme = model;
    }
}



@end
